/**
 * Copyright (c) 2011 - 2012 National Library of Medicine
 *
 * Contact: tomasz.adamusiak@nih.gov
 * 
 * This file is part of LOwlINC
 * 
 * LOwlINC is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 3 of the License, or (at your option) any
 * later version.
 * 
 * LOwlINC is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU Lesser General Public License along
 * with LOwlINC. If not, see <http://www.gnu.org/licenses/>.
 */
package gov.nih.nlm.lowlinc.bean;

import gov.nih.nlm.lowlinc.accessionwrapper.LOINCPartID;
import gov.nih.nlm.lowlinc.accessionwrapper.LOINCTermID;
import gov.nih.nlm.lowlinc.owlapi.LowlincException;

/**
 * @author Tomasz Adamusiak
 * 
 */
public class LOINCPartLinkBean {

	private String LOINC_NUM;
	private String L_PART_ID;
	private String LINK_TYPE;

	public String getLOINC_NUM() {
		return LOINC_NUM;
	}

	public LOINCTermID getTermID() throws LowlincException {
		return new LOINCTermID(getLOINC_NUM());
	}

	public void setLOINC_NUM(String lOINC_NUM) {
		LOINC_NUM = lOINC_NUM;
	}

	public LOINCPartID getPartID() throws LowlincException {
		return new LOINCPartID(getL_PART_ID());
	}

	public String getL_PART_ID() {
		return L_PART_ID;
	}

	public void setL_PART_ID(String l_PART_ID) {
		L_PART_ID = l_PART_ID;
	}

	public String getLINK_TYPE() {
		return LINK_TYPE;
	}

	public void setLINK_TYPE(String lINK_TYPE) {
		LINK_TYPE = lINK_TYPE;
	}

	@Override
	public String toString() {
		return "LOINC Part Link [LOINC_NUM=" + LOINC_NUM + ", L_PART_ID="
				+ L_PART_ID + "]";
	}
}
